import './styles/index.scss'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import mLibs from './libs/index'
import mDirective from './directives/index'
import { useREM } from './utils/flexible.ts'
import useTheme from './utils/theme.ts'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import './permission'
import 'virtual:svg-icons-register'

debugger

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router).use(mLibs).use(mDirective)
// 设置 rem
useREM()
// 初始化主题
useTheme()
app.mount('#app')
